<template>
  <el-container>
    <el-header>一个关于觉醒年代的论坛微服务项目</el-header>
    <el-main>
      <el-carousel style="color:#ffffff;" :interval="4000" type="card" height="600px">
        <el-carousel-item v-for="item in images" :key="item">
          <el-image :src="item.imageName"></el-image>
        </el-carousel-item>
      </el-carousel>
    </el-main>
  </el-container>
</template>

<script>
export default {
  name: "About",
  data(){
    return {
      images:[{imageName:require('@/assets/banner1.jpg')},
        {imageName:require('@/assets/banner2.jpeg')},
        {imageName:require('@/assets/banner3.jpg')},
        {imageName:require('@/assets/s1.jpg')},
        {imageName:require('@/assets/s2.jpg')},
        {imageName:require('@/assets/s3.jpg')},]
    }
  }
}
</script>

<style scoped>
.el-carousel__item h3 {
  color: #d3dce600;
  font-size: 14px;
  opacity: 0.75;
  line-height: 200px;
  margin: 0;
  text-align: center;
}

.el-carousel__item:nth-child(2n) {
  background-color: #d3dce600;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce600;
}
</style>
